package cn.stylefeng.guns.core.util;

import java.util.Random;
import java.util.UUID;

public class UUIDUtil {
    public static String uuid(){
        return UUID.randomUUID().toString().replace("-","").toUpperCase();
    }

    /**
     * 生成四位数随机数字
     * @return
     */
    public static int getRandomNum() {
        Random r = new Random();
        return r.nextInt(9000) + 1000;
    }
}
